package cn.com.cifi.mars.web.action.sys;

import java.util.List;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.com.cifi.mars.bean.vo.sys.req.UpdateSysDeliveryPlanParam;
import cn.com.cifi.mars.bean.vo.sys.req.UpdateSysProjectFetchNumberParam;
import cn.com.cifi.mars.bean.vo.sys.rsp.ProjectVo;
import cn.com.cifi.mars.bean.vo.sys.rsp.RegionVo;
import cn.com.cifi.mars.bean.vo.sys.rsp.SysDeliveryPlanVo;
import cn.com.cifi.mars.bean.vo.sys.rsp.SysProjectFetchNumberVo;
import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.common.constants.VersionConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(tags = {"系统管理"})
@RequestMapping("/${spring.data.rest.base-path}/{apiVersion}/sys/sysDeliveryPlan")
public interface ISysDeliveryPlanController {

	 @ApiOperation(value = "拉取组织机构数据到推送供货计划表(前端勿动)", notes = "拉取组织机构数据到推送供货计划表(前端勿动)")
	 @PostMapping(value = "")
	 public R<String> createSysDeliveryPlan(
	            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion);
	 
	 @ApiOperation(value = "显示推送供货计划", notes = "显示推送供货计划")
	 @GetMapping(value = "")
	 public R<List<SysDeliveryPlanVo>> getSysDeliveryPlan(
	            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion);
	 
	 @ApiOperation(value = "设置推送时间", notes = "设置推送时间")
	 @PutMapping(value = "")
	 public R<String> updateSysDeliveryPlan(
	            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
	            @RequestBody UpdateSysDeliveryPlanParam param);
	 
	 
}
